<template>
  <div style="display: flex;">
    <!-- :src="require(imgUrl)" -->
    <img v-if="imgUrl" :src="imgUrl" alt="" style="width: 14px; height: 14px; margin-right: 8px;margin-top: 3px" />
    <div style="display: flex; flex-direction: column;">
      <span class="details-title">{{ title }}</span>
      <span class="details-content" style="margin-top: 12px" @click="contentClick">{{ content ? content : 0 }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["imgUrl", "title", "content"],

  methods: {
    contentClick() {
      this.$emit("contentClick");
    }
  }
};
</script>

<style lang="scss" scoped>
.details-title {
  font-size: 14px;
  font-weight: 400;
  color: #767885;
  line-height: 21px;
}
.details-content {
  font-size: 18px;
  font-weight: bold;
  color: #55565d;
  line-height: 18px;
  cursor: pointer;
}
</style>
